package com.ftp;

import java.io.IOException;
import java.net.SocketException;

import org.apache.commons.net.ftp.FTPClient;

public class FTPTest {
	public static void main(String[] args) {

		try {
//			ContinueFTP2 c = new ContinueFTP2("10.1.4.109", "ABCDEFtest8",
//					"YeE4NMIW", "21", "", "");
//			c.connect("10.1.4.109", 21, "ABCDEFtest8", "YeE4NMIW");
//			//c.download("/Export/x/a.PNG", "D:\\x\\b.png");
//			c.upload("D:\\soft\\XJad2.2.zip", "/Export/x/a.zip");
			ContinueFTP2 c = new ContinueFTP2("127.0.0.1", "2maomao",
					"123456", 21, "", "");
			long start = System.currentTimeMillis();
			 c.download("/a.iso", "D:/visual/b.iso");
			 long end = System.currentTimeMillis();
			 System.out.println("用时："+(end-start));
			//c.upload("D:\\soft\\myeclipse-8.6.0-win32.exe", "/Export/x/123456.exe");
		} catch (IOException e) {
			e.printStackTrace();
		}
		// ftp://ABCDEFtest8:YeE4NMIW@10.1.4.109

	}
}
